﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using FinalProject.DAL.Mapping;

namespace FinalProject.BL
{
    public class JournalBL : BaseBL<FinalProject.DAL.Model.Journal>
    {
        public static IDictionary<Guid, string> GetAllCodeJournal()
        {
           
            try
            {
                var result = dalContext.Journals.ToDictionary(p => p.Id, g => g.Code);
                return result;
            }
            catch (Exception ex)
            {

                throw ex;
            }

        }
    }
}
